package com.cgc.venus.server.app.bean;
import java.util.List;
import java.util.Map;
/**
 * 应用基本信息修改(含资源/环境变量/启动参数)
 * Created by 业哥 on 2018/5/15.
 */
public class AppBaseInfoBean {
    /* 应用名称*/
    private String appName;
    /* 应用名称(kubernetes集群里面的名称)*/
    private String appNameKube;
    /* 应用类型*/
    private String appKind;

    /* 应用所属空间*/
    private String namespace;
    private int updateType=0;// 0:资源配置,1:启动参数,2:环境变量
    private List<String> command;//启动命令
    private List<String> args;   //启动参数
    private List<Map<String,String>> envs;   //环境变量
    private String requestCpu;//cpu请求值
    private String limitsCpu;//cpu最大值
    private String requestMemory;//内存请求值
    private String limitsMemory;//内存最大值

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppNameKube() {
        return appNameKube;
    }

    public void setAppNameKube(String appNameKube) {
        this.appNameKube = appNameKube;
    }

    public String getAppKind() {
        return appKind;
    }

    public void setAppKind(String appKind) {
        this.appKind = appKind;
    }


    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public int getUpdateType() {
        return updateType;
    }

    public void setUpdateType(int updateType) {
        this.updateType = updateType;
    }

    public List<String> getCommand() {
        return command;
    }

    public void setCommand(List<String> command) {
        this.command = command;
    }

    public List<String> getArgs() {
        return args;
    }

    public void setArgs(List<String> args) {
        this.args = args;
    }

    public List<Map<String, String>> getEnvs() {
        return envs;
    }

    public void setEnvs(List<Map<String, String>> envs) {
        this.envs = envs;
    }

    public String getRequestCpu() {
        return requestCpu;
    }

    public void setRequestCpu(String requestCpu) {
        this.requestCpu = requestCpu;
    }

    public String getLimitsCpu() {
        return limitsCpu;
    }

    public void setLimitsCpu(String limitsCpu) {
        this.limitsCpu = limitsCpu;
    }

    public String getRequestMemory() {
        return requestMemory;
    }

    public void setRequestMemory(String requestMemory) {
        this.requestMemory = requestMemory;
    }

    public String getLimitsMemory() {
        return limitsMemory;
    }

    public void setLimitsMemory(String limitsMemory) {
        this.limitsMemory = limitsMemory;
    }
}
